//
//  AdapterTest.m
//  Charles
//
//  Created by Charles on 2019/5/30.
//  Copyright © 2019 charles. All rights reserved.
//

#import "AdapterTest.h"
#import "Print.h"

@implementation AdapterTest

+ (void)classAdapterTest {
    id<Print> print = [[PrintBanner alloc] initWithString:@"Hello"];
    [print printWeak];
    [print printStrong];
}

+ (void)objectAdapterTest {
    Print *print = [[PrintBanner2 alloc]initWithString:@"Hello"];
    [print printWeak];
    [print printStrong];
}

@end
